Skip to content

feat: add no-stash option to staged command#11

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-staged-no-stash
Jul 10, 2026
Merged

feat: add no-stash option to staged command#11
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-staged-no-stash

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

This PR adds --no-stash support to rs staged for workflows that need to skip lint-staged's backup stash, while preserving the default stash: true behavior. The flag maps to stash: false and retains lint-staged's implied no-revert behavior and warning. Staged help descriptions are also normalized to sentence case.

@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 16209532-eab5-444e-a3c4-453d71aab575

📥 Commits

Reviewing files that changed from the base of the PR and between 076ad73 and 55532dc.

📒 Files selected for processing (2)
  • packages/rstack/src/staged.ts
  • packages/rstack/test/cli/staged/index.test.ts

📝 Walkthrough

Walkthrough

The staged CLI help now documents standardized option casing and the --no-stash flag. Argument parsing recognizes --no-stash, and the lint-staged invocation disables stashing when it is provided. Tests verify the new help text and confirm that running with --no-stash reports that the backup was skipped.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: adding a no-stash option to the staged command.
Description check ✅ Passed The description matches the implemented change by explaining --no-stash support, stash behavior, and help text updates.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chenjiahan/feat-staged-no-stash

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chenjiahan chenjiahan merged commit 8200cca into main Jul 10, 2026
5 of 6 checks passed
@chenjiahan chenjiahan deleted the chenjiahan/feat-staged-no-stash branch July 10, 2026 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant